﻿using System;

namespace ExFlash.Records
{
    public class MorphGradRecord : ISwfSerializable
    {
        public Byte StartRatio
        {
            get;
            protected set;
        }

        public RGBARecord StartColor
        {
            get;
            protected set;
        }

        public Byte EndRatio
        {
            get;
            protected set;
        }

        public RGBARecord EndColor
        {
            get;
            protected set;
        }

        #region ISwfSerializable Members

        public void SwfDeserialize(BinaryBitReader reader)
        {
            StartRatio = reader.ReadByte();

            StartColor = new RGBARecord();
            StartColor.SwfDeserialize(reader);

            EndRatio = reader.ReadByte();

            EndColor = new RGBARecord();
            EndColor.SwfDeserialize(reader);
        }

        public void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
